package org.vidyakiran.app.server.service;

import java.util.ArrayList;
import java.util.Collection;

import org.vidyakiran.app.client.ReferenceDataService;
import org.vidyakiran.app.client.view.VolunteerView;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class ReferenceDataServiceImpl extends RemoteServiceServlet implements
		ReferenceDataService {

	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -43442541925595641L;

	@Override
	public <T> Object fetchReferenceDataByClass(Class<T> clazz) {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	public <T> Object fetchReferenceDataByType(String type) {
		
		Collection<String> c = new ArrayList<String>();
		if(VolunteerView.CITY.equals(type)){
			c.add("Mumbai");
			c.add("Delhi");
			c.add("Chandigarh");
			c.add("Pune");
			c.add("Nashik");
			c.add("Banglore");
			c.add("Goa");
			c.add("Aurangabad");
			c.add("Navi Mumbai");
			c.add("Kalyan");
		}else if(VolunteerView.LOCATION.equals(type)){
			c.add("Vikhroli");
			c.add("Ghatkopar");
			c.add("Bhandup");
			c.add("Mulund");
			c.add("Thane");
			c.add("Kanjurmarg");
			c.add("Vidya Vihar");
			c.add("Sion");
			c.add("Kurla");
			c.add("Dadar");
		}else if(VolunteerView.INTEREST.equals(type)){
			c.add("Music");
			c.add("Dance");
			c.add("Yoga");
			c.add("Dramatics");
			c.add("Help with home work");
			c.add("Sewing");
			c.add("Typing");
			c.add("English");
			c.add("Cricket");
			c.add("Karate");
		}

		return c;
	}

}
